/*
* Copyright 2016 Yonyou Auto Information Technology（Shanghai） Co., Ltd. All Rights Reserved.
*
* This software is published under the terms of the YONYOU Software
* License version 1.0, a copy of which has been included with this
* distribution in the LICENSE.txt file.
*
* @Project Name : marketing-wechat-open-api
*
* @File name : SosHelpServiceInterFace.java
*
* @Author : WangHuicheng
*
* @Date : 2016年11月11日
*
----------------------------------------------------------------------------------
*     Date       Who       Version     Comments
* 1. 2016年11月11日    WangHuicheng    1.0
*
*
*
*
----------------------------------------------------------------------------------
*/
	
package com.yonyou.gmcc.gateway.wechat.service.interfaces;

import java.util.HashMap;

import org.springframework.beans.factory.annotation.Value;

import com.yonyou.gmcc.gateway.wechat.common.HttpClientUtil;


/**
* TODO description
* @author WangHuicheng
* 
* @date 2016年11月11日
*/

public class SosHelpServiceInterFace {
    
    @Value("${dealerApp.url:https://carapptest.gtmc.com.cn/appservice}")
    public String dealerAppUrl;
    
    public  final  String sosDealerUrl = "/okr/oneKeyResuce/resuceSearch.json"; 
    
    
    public String getSosDealers( String lat, String lng){
        
        String url = dealerAppUrl + sosDealerUrl;
        HashMap<String,Object> paramMap = new HashMap<>();
        paramMap.put("lat", lat);
        paramMap.put("lng", lng);
        
        String result  = HttpClientUtil.sendGetRequest(url, paramMap);
        
        return result;
    }
    

}
